package com.nd.qa.shareplate.interfaces;

import java.io.File;
import java.util.List;

import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.Element;
import org.dom4j.Node;
import org.dom4j.io.SAXReader;

public class ParserXML {

	public boolean parserXml(String xmlPath){
		File file = new File(xmlPath);
		SAXReader reader = new SAXReader();
		try {
			Document document = reader.read(file);
			Element classElement = document.getRootElement();
			//获取所有节点
			List<Node> nodes = classElement.selectNodes("");
			for (Node node : nodes) {
				
			}
		} catch (DocumentException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return true;
	}
}
